import request from '../utlis/request'


//获取用户的点餐信息 
export const getOders =() => {
    return request ({
        method: 'GET',
        url: '/orders'
    })
}
//获取菜品信息
export const getFoods =() => {
    return request ({
        method: 'GET',
        url: '/foods'
    })
}
//点餐
export const getOder =(data) => {
    return request ({
        method: 'POST',
        url: '/order',
        data
    })
}